package org.example.blog.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CategoryMapper {

    /*
    查询所有分类的名称
     */
    @Select("select name from category")
    List<String> findAllCategoryName();
}
